<script setup>
import { useStore } from "vuex";

const store = useStore();
//修改数据func测试
function addState() {
  store.commit("add");
}

function minState() {
  store.commit("min");
}
//异步func测试
function changeState() {
  store.dispatch("change", 99);
}
</script>

<template>
  <router-view></router-view>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
